﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CashierSystem.UserManager;

namespace CashierSystem.CustomerManager
{
    public partial class NewCustomerForm : Form
    {
        public NewCustomerForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string customerName = tbCustomerName.Text;
            string sex = cbSex.Text;
            string tel = tbTel.Text;
            string cardId = tbCardId.Text;
            string workPlace = tbWorkPlace.Text;
            string customerType = cbCustomerType.Text;
            
            CustomerManagerAction.save(customerName, sex, tel, cardId,customerType,workPlace);
            //DialogResult response = MessageBox.Show("提交信息成功！");

            /*string maxCustomerId = CustomerManagerAction.getMaxCustomerId();
            string regPrice = tbRegistFee.Text;
            string userId = user.getAccount();
            CustomerManagerAction.regSave(maxCustomerId, regPrice,userId);*/
            DialogResult response = MessageBox.Show("会员资料录入成功！");
        }
    }
}